GetLexicographicalComparer Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates an IComparer instance that can be used for comparing ordered sequences of type T; that is IEnumerable<Tgt;. This comparer can be uses for collections or algorithms that use sequences of T as an item type. The Lexicographics ordered of sequences is for comparison.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static IComparer<IEnumerable<T>> GetLexicographicalComparer<T>(
	IComparer<T> comparer
)
Visual Basic (Declaration)
Public Shared Function GetLexicographicalComparer(Of T) ( _
	comparer As IComparer(Of T) _
) As IComparer(Of IEnumerable(Of T))
Visual C++
public:
generic<typename T>
static IComparer<IEnumerable<T>^>^ GetLexicographicalComparer (
	IComparer<T>^ comparer
)

Parameters

comparer
IComparer<(Of <T>)>
A comparer instance used to compare individual items of type T.

Return Value

At IComparer<IEnumerable<T>> that compares sequences of T.

Type Parameters

T

See Also